using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Musicman.Business;

namespace MusicmanWeb.USER
{
    public partial class FileStatsOverview : MusicmanPage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            ReddirectNonActiveSession();
        }

        public void Button1_Click(object sender, CommandEventArgs e)
        {
            DropDownList ddl = this.FormView1.FindControl("DropDownList1") as DropDownList;
            int mark = Int32.Parse(ddl.SelectedValue);
            long fileID = Int64.Parse(Request["Fileid"]);
            DataManager.Instance.UpdateSearchFileStats(fileID, mark);
            FormView1.DataBind();
        }
    }
}
